<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${applicationScope.messageList }" var="list"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>留言列表 - 商城</title>
		<%@ include file="/common/include/title.jsp"%>
	</head>
	<body>
		<jsp:include page="/MainHeadServlet">
			<jsp:param value="header" name="method"/>
		</jsp:include>
		<div id="mainBody">
			<div class="container">
				<div class="row">
					<%@ include file="/common/include/leftBar.jsp"%>
					<div class="span9">
						<ul class="breadcrumb">
							<li><a href="${rootPath }/MainHeadServlet?method=main">首页</a><span class="divider">/</span></li>
							<li class="active">我的购物车</li>
						</ul>
						<a href="${rootPath }/head/UsersHeadServlet?method=messageInsert" target="_blank">添加留言</a>
						<c:forEach items="${list }" var="listTemp" varStatus="stat">
							<table class="table table-bordered">
								<tbody>
									<tr>
									    <td>序号:</td>
                                        <td>${stat.count }</td>
									    <td>标题:</td>
                                        <td>${listTemp.name}</td>
										<td>用户:</td>
										<td>${listTemp.userName}</td>
										<td>时间:</td>
                                        <td><fmt:formatDate value="${listTemp.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
									</tr>
									<tr>
                                        <td>内容:</td>
                                        <td colspan="7">${listTemp.content}</td>
                                    </tr>
								</tbody>
							</table>
						</c:forEach>
					</div>
				</div>
			</div>
		</div>
		<%@ include file="/common/include/footer.jsp"%>
	</body>
</html>